/**
 * 
 */
package com.yash.rms.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * This util class provides application log to provide useful information inside layer methods 
 * like to log sql statements before executing on DB 
 */
/**
 * @author Ramesh.Suryaneni
 *
 */
public class LoggerUtil {
	
	private static Log log = null;
	
	
	
	/**
	 * used to get log object whenever wants to log something on logger 
	 * @return
	 */
	public static synchronized Log getLog() {
		if (log == null)
			log = LogFactory.getLog("appLog");

		return log;
	}
}
